﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Web;
using MongoDB.Bson.Serialization.Attributes;

namespace SignatureWebApi.Models
{
    /// <summary>
    /// App更新模型
    /// </summary>
    [BsonIgnoreExtraElements]
    public class AppUpdateModel
    {
        /// <summary>
        /// app名字
        /// </summary>
        [Required(AllowEmptyStrings = true)]
        public string appName { get; set; }
        /// <summary>
        /// 版本Code
        /// </summary>
        [Required(AllowEmptyStrings = true)]
        public int versionCode { get; set; }
        /// <summary>
        /// 版本名
        /// </summary>
        [Required(AllowEmptyStrings = true)]
        public string versionName { get; set; }
        /// <summary>
        /// 该版本描述
        /// </summary>
        [Required(AllowEmptyStrings = true)]
        public string description { get; set; }

        /// <summary>
        /// 是否强势更新
        /// </summary>
        [Required]
        public bool force { get; set; }
    }

    /// <summary>
    /// App更新请求模型
    /// </summary>
    public class AppUpdateRequestModel
    {
        /// <summary>
        /// 版本Code
        /// </summary>
        public int versionCode { get; set; }
    }


}